<table>
	<caption><g:message code="role.id.label" default="Id" />:${fieldValue(bean: roleInstance, field: "id")}</caption>
    <tbody>
        <tr class="prop">
            <td class="name"><g:message code="role.name.label" default="Name" /></td>
            <td class="value">${fieldValue(bean: roleInstance, field: "name")}</td>
            <td class="name"></td>
            <td class="value"></td>
        </tr>
        <tr class="prop">
            <td class="name"><g:message code="role.permissions.label" default="Permissions" /></td>
            <td class="value">${fieldValue(bean: roleInstance, field: "permissions")}</td>
            <td class="name"></td>
            <td class="value"></td>
        </tr>
        <tr class="prop">
            <td class="name"><g:message code="role.users.label" default="Users" /></td>
            <td style="text-align: left;" class="value">
                <ul>
                <g:each in="${roleInstance.users}" var="u">
                    <li><g:link controller="user" action="show" id="${u.id}">${u?.username?.encodeAsHTML()}</g:link></li>
                </g:each>
                </ul>
            </td>
            <td class="name"></td>
            <td class="value"></td>
        </tr>
    </tbody>
</table>